function EpDesignerCoreResolver() {
  return {
    type: "component",
    resolve: (name) => {
      if (/^Ep[A-Z]/.test(name)) {
        const kebabName = name.replace(/([Ep])([A-Z])/g, "$1-$2").toLowerCase();
        return {
          name,
          from: `ep-designer-core/es/components/${kebabName}`,
          sideEffects: `ep-designer-core/es/components/${kebabName}/style.css`
        };
      }
      if (/^M[A-Z]/.test(name)) {
        const kebabName = name.replace(/([M])([A-Z])/g, "$1-$2").toLowerCase();
        return {
          name,
          from: `ep-designer-core/es/mobile-components/${kebabName}`,
          sideEffects: `ep-designer-core/es/mobile-components/${kebabName}/style.css`
        };
      }
    }
  };
}
export {
  EpDesignerCoreResolver
};
